﻿using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;

namespace PrivateTracker.Service.Core;
/// <summary>
/// 
/// </summary>
public class SysUserRoleSeedData : IEntitySeedData<SysUserRole>
{
    /// <summary>
    /// 种子数据
    /// </summary>
    /// <param name="dbContext"></param>
    /// <param name="dbContextLocator"></param>
    /// <returns></returns>
    public IEnumerable<SysUserRole> HasData(DbContext dbContext, Type dbContextLocator)
    {
        return new[]
        {
                // 租户管理员默认管理员角色
                new SysUserRole {SysUserId = 142307070910551, SysRoleId = 142307070910554}, //超级管理员

                new SysUserRole {SysUserId = 142307070910552, SysRoleId = 142307070910555},  //系统管理员
                new SysUserRole {SysUserId = 142307070910553, SysRoleId = 142307070910555}  //普通用户
                
            };
    }
}